]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: make the menu un-key-navigable
authorDan Winship <danw@gnome.org>
Tue, 15 Feb 2011 22:10:35 +0000 (17:10 -0500)
committerDan Winship <danw@gnome.org>
Mon, 7 Mar 2011 15:57:45 +0000 (10:57 -0500)
It already doesn't work right, because the PanelMenuButton code
assumes that Left and Right won't be used as part of keynav within a
menu. And the gnome-panel calendar isn't keyboard accessible either,
so this isn't a regression. To be fixed later.

https://bugzilla.gnome.org/show_bug.cgi?id=641253

js/ui/dateMenu.js

index 6dee534b6ebd2e3dd6ab99702d35a4875bf7c842..ad2c112efb3fada070c2a8b86ff3fa66993c328c 100644 (file)
@@ -90,6 +90,7 @@ DateMenuButton.prototype = {
         vbox.add(item.actor, {y_align: St.Align.END, expand: true, y_fill: false});
         item = new PopupMenu.PopupMenuItem(_("Date and Time Settings"));
         item.connect('activate', Lang.bind(this, this._onPreferencesActivate));
+        item.actor.can_focus = false;
         vbox.add(item.actor);
 
         // Add vertical separator
@@ -109,6 +110,7 @@ DateMenuButton.prototype = {
 
         item = new PopupMenu.PopupMenuItem(_("Open Calendar"));
         item.connect('activate', Lang.bind(this, this._onOpenCalendarActivate));
+        item.actor.can_focus = false;
         vbox.add(item.actor, {y_align: St.Align.END, expand: true, y_fill: false});
 
         // Whenever the menu is opened, select today